package top.laoshuzi.designpatterns.base.behavior.observer;

public class ConcreteSubject extends Subject {

    private String state;

    public String getState() {
        return state;
    }

    public void notifyAllObservers(String state) {
        this.state = state;
        for (Observer o : observers) {
            o.update(state);
        }
    }
}
